package reflection.equals.assignablefrom;


public class VipClient extends Client {

	public VipClient(Long id) {
		super(id);
	}

	@Override
	public boolean equals(Object obj) {

		if (obj == null) {
			return false;
		}

		if (this == obj) {
			return true;
		}

		if (this.getClass().isAssignableFrom(obj.getClass())){
			VipClient vipClientObj = (VipClient) obj;
			return id.equals(vipClientObj.getId());
		}

		return false;
	}

	
}
